x11: Notify on surface scale changes
authorMatthias Clasen <mclasen@redhat.com>
Sat, 16 Jan 2021 20:21:36 +0000 (15:21 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 16 Jan 2021 20:22:46 +0000 (15:22 -0500)
Emit property notification when the surface scale
changes.

gdk/x11/gdksurface-x11.c

index 207c34e419e824a7a25dd0b7901bfc3eaa8fda6a..feecf917a24c39a37323ea999c3141bc070d3ea6 100644 (file)
@@ -2013,6 +2013,8 @@ _gdk_x11_surface_set_surface_scale (GdkSurface *surface,
                  surface->height * impl->surface_scale);
 
   gdk_surface_invalidate_rect (surface, NULL);
+
+  g_object_notify (G_OBJECT (surface), "scale-factor");
 }
 
 void